package i18n

import "rate/common/consts"

var zh, en string = "zh", "en"

func I(code string, cl string) string {
	if code == "0" {
		code = consts.SystemError
	}
	switch cl {
	case zh:
		return zhMap[code]
	case en:
		return enMap[code]
	default:
		return zhMap[code]
	}
}
